<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <link rel="icon" href="/favicon.ico" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta viewport-fit="cover"/>
  <title>Vite App</title>
</head>
<body>
  <div id="app"></div>
  <script type="module" src="/src/main.js"></script>
</body>
</html>

<script>
	//用var声明的变量既是全局变量，也是顶层变量,是window对象
	var a=1 //var a=1等价于window.a=1
	console.log('window.a=',window.a)
</script>